import { createWebHashHistory, createRouter } from 'vue-router';

import ChartBar from '@/views/ChartBar/ChartBar.vue';
import ChartLine from '@/views/ChartLine/ChartLine.vue';
import ChartPie from '@/views/ChartPie/ChartPie.vue';
import ChartScatter from '@/views/ChartScatter/ChartScatter.vue';

const routes = [
    { path: '/', component: ChartBar },
    { path: '/bar', component: ChartBar },
    { path: '/line', component: ChartLine },
    { path: '/pie', component: ChartPie },
    { path: '/scatter', component: ChartScatter },
];

export const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
